/* 轮播图 */
.carousel {
    position: relative;
    width: 100vw;
    height: 30vw;
    overflow: hidden;
  }
  
  .carousel .carousel-bg {
    list-style: none;
    width: inherit;
    height: inherit;
    position: absolute;
    top: 0;
    left: 0;
    transition: 2s transform ease-in-out;
    animation: move 10s ease infinite;
  }
  
  .carousel .carousel-bg img {
    width: 100%;
  }
  
  .carousel .carousel-bg:nth-of-type(1) {
    left: 0;
  }
  
  .carousel .carousel-bg:nth-of-type(2) {
    left: 100%;
  }
  
  .carousel .carousel-bg:nth-of-type(3) {
    left: 200%;
  }
  
  .carousel .carousel-bg:nth-of-type(4) {
    left: 300%;
  }
  
  .carousel .carousel-bg:nth-of-type(5) {
    left: 400%;
  }
  
  .carousel input {
    display: none;
  }
  
  .carousel .label-box {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
  }
  
  .carousel .label-box label {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(250, 250, 250, 0.5);
    border: 1px solid #fff;
    display: none;
  }
  
  .carousel-box:hover .carousel-bg {
    animation: none;
  }
  
  .carousel-box:hover .label-box label {
    display: inline-block;
  }
  
  @keyframes move {
    20% {
      transform: translateX(0);
    }
  
    40% {
      transform: translateX(-100%);
    }
  
    60% {
      transform: translateX(-200%);
    }
  
    80% {
      transform: translateX(-300%);
    }
  
    100% {
      transform: translateX(-400%);
    }
  }
  
  .carousel input:nth-of-type(1):checked~.label-box label:nth-of-type(1) {
    background-color: #fff;
  }
  
  .carousel input:nth-of-type(2):checked~.label-box label:nth-of-type(2) {
    background-color: #fff;
  }
  
  .carousel input:nth-of-type(3):checked~.label-box label:nth-of-type(3) {
    background-color: #fff;
  }
  
  .carousel input:nth-of-type(4):checked~.label-box label:nth-of-type(4) {
    background-color: #fff;
  }
  
  .carousel input:nth-of-type(1):checked~.carousel-bg {
    transform: translate(0%);
  }
  
  .carousel input:nth-of-type(2):checked~.carousel-bg {
    transform: translate(-100%);
  }
  
  .carousel input:nth-of-type(3):checked~.carousel-bg {
    transform: translate(-200%);
  }
  
  .carousel input:nth-of-type(4):checked~.carousel-bg {
    transform: translate(-300%);
  }
  